package com.woniuxy.hrp.Vo;

import com.woniuxy.hrp.entity.Doctor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.List;

public class DoctorVo extends User {

    public DoctorVo(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
    private  int id;
    private String username;
    private  String password;
    private List<GrantedAuthority> authorities;
    public DoctorVo(int id,String username, String password, Collection<? extends GrantedAuthority> authorities){
        this(username,password, authorities);
        this.id=id;
        this.authorities= (List<GrantedAuthority>) authorities;
        this.password=password;
        this.username=username;
    }
}
